package com.mayikt.edu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mayikt.edu.entity.EduCourseClass;
import com.mayikt.edu.mapper.EduCourseClassMapper;
import com.mayikt.edu.service.IEduCourseClassService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务实现类
 *
 * @author mayikt
 * @since 2023-10-12
 */
@Service
public class EduCourseClassServiceImpl extends ServiceImpl<EduCourseClassMapper, EduCourseClass>
    implements IEduCourseClassService {
  @Autowired private EduCourseClassMapper eduCourseClassMapper;

  /** 区分bean 业务逻辑层 控制层bean */
  @Override
  public List<EduCourseClass> getAllCourseClass() {
    QueryWrapper<EduCourseClass> objectQueryWrapper = new QueryWrapper<>();
    List<EduCourseClass> eduCourseClasses = eduCourseClassMapper.selectList(objectQueryWrapper);
    return eduCourseClasses;
  }
}
